﻿@namespace Masa.Blazor
@inherits MasaComponentBase

@if (_isBooted || Eager)
{
    <ExpandTransition>
        <ShowTransitionElement Value="_isActive"
                               Class="@GetClass()"
                               Style="@GetStyle()"
                               ReferenceCaptureAction="r => Ref = r"
                               id="@Id"
                               @attributes="@Attributes">
            <div class="@_block.Element("wrap")">
                <MShouldRender Value="@_isActive">
                    @ChildContent
                </MShouldRender>
            </div>
        </ShowTransitionElement>
    </ExpandTransition>
}